package com.revzone.demo001.enums.ExciptionEnums;

public enum EnumExciption {

    /**
     * token问题
     */
    TOKEN_ERROR(401, "token无效"),
    TOKEN_EXPIRED(401, "token已过期"),

    /**
     * 账号问题
     */
    AUTH_REQUEST_ERROR(401, "用户名或密码错误!"),
    AUTH_REQUEST_LOCKED(401, "该账号已被冻结!"),
    AUTH_REQUEST_EXISTS(401,"该用户暂无权限或用户名不存在!"),
    SYSTEM_ERROR(500,"服务器内部问题！"),
    ;

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    EnumExciption(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
